package org.gdpu.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;


/**
 * 资源种类
 * Created with IntelliJ IDEA.
 * Person: Administrator
 * Date: 13-6-4
 * Time: 上午11:37
 * To change this template use File | Settings | File Templates.
 */

@Entity
public class ResourceCategory {

    /**
    系统序号
     */
    private Integer id;
    /**
    种类名称
     */
    private String name;

    /**
     * 允许上传的前缀
     */
    private String sufix;

    public ResourceCategory() {
    }

    public ResourceCategory(String name) {
        this.name = name;
    }

    @Id
    @GeneratedValue
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSufix() {
        return sufix;
    }

    public void setSufix(String sufix) {
        this.sufix = sufix;
    }
}
